<?php
namespace app\common\model\agent;
use app\common\model\promotion\PromotionUserModel;
use think\Model;

class PromotionWithdrawalModel extends Model
{
    // 表名
    protected $name = 'promotion_withdrawal';
    // 表主键
    protected $pk = 'id';
    // 关联推广员
    public function promotionUser()
    {
        return $this->hasOne(PromotionUserModel::class, 'promotion_user_id', 'promotion_user_id');
    }
}
